<table border="1">
	<tr>
		<th>Mã bài viết</th>
		<th>Tiêu đề</th>
		<th>Nội dung</th>
		<th>Ngày đăng</th>
        <th>Thể loại</th>
		<th>Người Đăng</th>
        <th colspan="2"><input type="button" name="delete" value="delete"/></th>
	</tr>
	<?php
		$articleDAO = new articleDAO();
		$listArticle = $articleDAO->selectAll();
        $accDAO = new accountDAO();
        
		foreach($listArticle as $art)
		{		  
          $acc = $accDAO->selectById($art->accId);
			?>
			<tr>
				<td><?php echo $art->artId; ?></td>
				<td><?php echo $art->title; ?></td>
				<td><?php echo $art->content; ?></td>
				<td><?php echo $art->postDate; ?></td>
				<td><?php echo $art->level; ?></td>
				<td><?php echo $art->accId; ?></td>
                <td><input type="button" name="edit" value="edit"/></td>
                <td><input type="checkbox" name="checkbox_account[]"/></td>						
			</tr>
			<?php	
		}								
	?>
</table>